{*include file='share/head.html'*}


{*include file='index/header.html'*}
<!--内容-->
<div class="IC-card">
	<div class="container">
	<div class="IC-content">
		<table class="table table-striped">
			<caption>
				<form class="form-horizontal" action="" method="post">
					<div class="pull-right">
						<a href="index.php?c=index&m=addcar" class="btn btn-primary">新增</a>
					</div>
					<div class="col-xs-3 pull-right" >
						<div class="input-group">
							<input type="text" class="form-control">
		                    <span class="input-group-btn">
		                        <button class="btn btn-primary" type="button">查找</button>
		                    </span>
						</div>
					</div>
				</form>
				<span>IC卡信息管理</span>
			</caption>
			<thead>
				<tr>
					<th>序号</th>
					<th>车辆牌号</th>
					<th>
						<div class="btn-group-vertical">
						    <span class="dropdown-toggle" data-toggle="dropdown">
						        车辆类型
						        <span class="caret"></span>
						    </span>
		                    <ul class="dropdown-menu" name='vehicleType'>
		                        <li class="active" name="不限"><a href="#">不限</a></li>
		                        {*foreach $carconf.vehicleType as $value*}	
		                        <li name="{*$value*}"><a href="#">{*$value*}</a></li>
		                        {*/foreach*}
		                    </ul>
		                </div>
					</th>
					<th>
						<div class="btn-group-vertical">
						    <span class="dropdown-toggle" data-toggle="dropdown">
						        车辆类别
						        <span class="caret"></span>
						    </span>
		                    <ul class="dropdown-menu" name='vehicleProperty'>
		                        <li class="active" name="不限"><a href="#">不限</a></li>
		                        {*foreach $carconf.vehicleProperty as $value*}	
		                        <li name="{*$value*}"><a href="#">{*$value*}</a></li>
		                        {*/foreach*}
		                    </ul>
		                </div>
					</th>
					<th>核定座位</th>
					<th>
						<div class="btn-group-vertical">
						    <span class="dropdown-toggle" data-toggle="dropdown">
						        运营性质
						        <span class="caret"></span>
						    </span>
		                    <ul class="dropdown-menu" name='vehicleType'>
		                        <li class="active"><a href="#">不限</a></li>
		                        <li><a href="#">运营</a></li>
		                        <li><a href="#">非运营</a></li>
		                    </ul>
		                </div>
					</th>
					<th>
						<div class="btn-group-vertical">
						    <span class="dropdown-toggle" data-toggle="dropdown">
						        状态 
						        <span class="caret"></span>
						    </span>
		                    <ul class="dropdown-menu" name='vehicleType'>
		                        <li class="active"><a href="#">不限</a></li>
		                        <li><a href="#">未提交</a></li>
		                        <li><a href="#">审核中</a></li>
		                        <li><a href="#">未通过</a></li>
		                        <li><a href="#">通过审核</a></li>
		                    </ul>
		                </div>
					</th>
					<th width='240'>操作</th>
				</tr>
			</thead>
			<tbody>
				{*if $data*}
				{*foreach $data as $value*}							  
				<tr>
					<td><span> {*$value.id*} </span></td>
					<td><span>{*$value.vehicleCodePrefix*} {*$value.car_code*} </span></td>
					<td><span>{*$value.vehicleType*}</span></td>
					<td><span> {*$value.vehicleProperty*}</span></td>
					<td><span> {*$value.checked_seat*} </span></td>
					<td><span> {*$value.operation_property*} </span></td>
					<td>
						{*if $value.car_status==1*}
						<span class="text-warning">未提交</span>
						{*elseif $value.car_status==2*}
						<span class="text-info">审核中<span>
						{*elseif $value.car_status==3*}
						<span class="text-success"> 通过审核 </span>
						{*elseif $value.car_status==4*}
						<span class="text-danger">审核未通过</span>
						{*/if*}
					</td>
					{*if $value.car_status==2||$value.car_status==3*}
					<td>
						<a href="index.php?c=index&m=carinfo&carid={*$value.id*}" class="text-primary">查看</a>
					</td>
					{*elseif $value.car_status==1||$value.car_status==4*}
					<td>
						<a href="index.php?c=index&m=carinfo&carid={*$value.id*}" class="text-primary">提交</a>&ensp;|
						<a href="index.php?c=index&m=carinfo&carid={*$value.id*}" class="text-primary">查看</a>&ensp;|
						<a href="index.php?c=index&m=addcar&carid={*$value.id*}" class="text-primary">修改</a>&ensp;|
						<a href="index.php?c=index&m=delcar&carid={*$value.id*}" class="text-danger">删除</a>
					</td>
					
					{*/if*}
				</tr>
				{*/foreach*}
				{*else*}
						<tr>
							<td></td><td></td><td></td><td></td>
							<td>没有车辆信息</td>
							没有车辆信息</tr>
				{*/if*}		
			</tbody>
		</table>		
	</div>
	<div class="page text-center">
		<ul class="pagination pagination-lg">
			{*if $pages.page!=1*}
			<li><a href="index.php?c=index&m=index&page=1">&laquo;</a></li>
			<li><a href="index.php?c=index&m=index&page={*$pages.page-1*}">&lt;</a></li>
			{*/if*}
			{*for $page=1 to $pages.count*}
			<li class="{*if $pages.page==$page*}active{*/if*}">
				<a href="index.php?c=index&m=index&page={*$page*}">{*$page*}</a></li>
			{*/for*}
			{*if $pages.page!=$pages.count||$pages.page>1*}
			<li><a href="index.php?c=index&m=index&page={*$pages.page+1*}">&gt;</a></li>
			<li><a href="index.php?c=index&m=index&page={*$pages.count*}">&raquo;</a></li>
			{*/if*}
		</ul>
	</div>
	</div>
</div>	
{*include file='share/footer.html'*}
<script src="static/pubilc/bootstrap/js/jquery.js"></script>
<script src="static/pubilc/bootstrap/js/bootstrap.min.js"></script>
<script src="static/pubilc/bootstrap/js/bootstrap-select.min.js"></script>
<script type="text/javascript">
	$(function(){
		$('.table-striped thead th .dropdown-menu li').click(function(){
			$(this).parent().find('li').removeClass('active');
			$(this).addClass('active');
		})
	})
</script>